import { request } from '../request/request.js'

export function getUserAsset(token) {
   return new Promise((resolve, resject) => {
      request({
         url: '/user/amount',
         data:{token}
      }).then(res => {
         resolve(res)
      })
   })
}

// 帮助中心接口
export function getHelpCenter(){
   return new Promise((resolve,resject)=>{
      request({
         url:'/cms/category/list',
      }).then(res=>{
         resolve(res)
      })
   })
}

// 帮助中心右侧一层接口
export function getHelpCenterRight(categoryId){
   return new Promise((resolve,resject)=>{
      request({
         url:'/cms/news/list',
         data:{
            categoryId
         }
      }).then(res=>{
         resolve(res)
      })
   })
}

